<%@ page 
language="java" 
import="java.util.*" 
import="com.csd.helper.IConstant"
import="com.csd.vo.UserVO"
import="com.csd.pojo.Teacher"
import="com.csd.pojo.Project"
pageEncoding="UTF-8"
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
HttpSession s = request.getSession();
UserVO uvo =  (UserVO)s.getAttribute(IConstant.userVO);
if(uvo==null || !uvo.getType().equals(IConstant.teacherRole))
{
	response.sendRedirect(path);
}
List<Project> projects = (List)request.getAttribute("project");

if(projects==null)
{
	projects = new ArrayList<Project>();
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>指导项目</title>
<link href="<%=path %>/teacher/css/teacher_right.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="main">
        <h1>我指导的项目</h1>
        <hr />
        <h3>&nbsp;</h3>
        <table width="100%">
          <tr>
            <td class="table_head" width="100px">项目类别</td>
            <td class="table_head" width="200px">项目名称</td>
            <td class="table_head" width="100px">负责人</td>
            <td class="table_head">操作</td>
          </tr>
          <tr>
          <%for(Iterator<Project> i = projects.iterator();i.hasNext();){ 
          	Project project = i.next();%>
            <td height="32">
            	<%= project.getProjectType().getName() %>
            </td>
            <td><%=project.getProjectname()%></td>
            <td><%=project.getTeam().getLeader().getName()%></td>
            <td><a href="projectInfoShow.action?projectID=<%=project.getId()%>&returnpage=<%=path%>/teacherGuide.action">查看</a></td>
          </tr><%}%>
         
        </table>
    </div>
</body>
</html>
